package com.two.service.caipin.vo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
@Data

public class MenuPo {
    //mid是字段的主键，
    @TableId(value = "mid")
    private String mid;
    private String dishName;
    private String price;
    private String unit;
    private Integer number;
    private Integer cid;
    @TableField(fill = FieldFill.INSERT)
    private Integer status;
    private String menuImg;
    private String instroduce;
    private String disPrice;
    private Integer rid;
    //逻辑删除
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer tai;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime requesttime;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime checktime;
    private String usermonicker;
    private String bohui;
    private Integer dishNum;

}
